package com.example.provider.qiniuyun;

/**
 * All rights Reserved, Designed By www.maihaoche.com
 *
 * @Package com.example.provider.qiniuyun
 * @author: 红雪（hongxue@maihaoche.com）
 * @date: 2019/1/28 5:37 PM
 * @Copyright: 2017-2020 www.maihaoche.com Inc. All rights reserved.
 * 注意：本内容仅限于卖好车内部传阅，禁止外泄以及用于其他的商业项目
 */
public class FileServiceFactory {

    public static  IFileService getInstance(UploadToolsBuilder uploadToolsBuilder){
        IFileService fileService = null;
        switch (uploadToolsBuilder.getUploadInstanceEnum()){
            case QINIU:fileService = new QiniuServiceImpl(uploadToolsBuilder.getQiniuBase());break;
        }
        return  fileService;
    }
}
